package com.test.test.service;

import java.util.List;

import com.test.test.dto.common.PageParam;
import com.test.test.dto.common.PageResp;
import com.test.test.dto.common.ResultResp;
import com.test.test.dto.userModule.UserParam;
import com.test.test.dto.userModule.UserResp;
/**
 * 用户类
 * @author runkeen3
 *
 */
public interface UserService {

	ResultResp<Integer> addUser(UserParam userDto) throws Exception;

	ResultResp<Boolean> modifyUser(UserParam userDto) throws Exception;

	ResultResp<Boolean> modifyPassword(UserParam userDto) throws Exception;

	ResultResp<List<UserResp>> userList(UserParam param) throws Exception;

	ResultResp<PageResp<UserResp>> pageUser(PageParam<UserParam> param) throws Exception;

	ResultResp<UserResp> findById(Integer userId) throws Exception;

	ResultResp<Boolean> deleteUser(Integer userId) throws Exception;

	ResultResp<UserResp> checkedLogin(UserParam userDto) throws Exception;
	
	ResultResp<Boolean> tetsRollBack() throws Exception;

}
